﻿#include "common.h" // 包含预编译头文件
#include "CoordWindow.h"

CoordWindow::CoordWindow(QWidget *parent)
	: QMainWindow(parent)
{
	ui.setupUi(this);

	// 设置窗口标题
//#pragma execution_character_set("gbk")
	setWindowTitle(u8"3D旋转音效设置");

	// 禁用最小化按钮
	setWindowFlags(windowFlags() & ~Qt::WindowMinimizeButtonHint);

	// 连接信号槽
	connect(ui.pushButtonQuit, SIGNAL(clicked()), this, SLOT(close()));
	connect(ui.pushButtonReset, SIGNAL(clicked()), this, SLOT(resetCoord()));
}

CoordWindow::~CoordWindow()
{
}

void CoordWindow::resetCoord()
{
	ui.spinBoxTimeSet->setValue(30);
	ui.spinBoxPosX->setValue(10);
	ui.spinBoxPosY->setValue(-10);
	ui.spinBoxPosZ->setValue(10);
	ui.pushButtonSure->click();
}
